home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyyPPPPeeeerrrrDDDDiiiissssppppllllaaaayyyy((((UUUU3333NNNNXXXXIIII))))XXXX SSSSyyyysssstttteeeeMMMMmmmmrrrrmmmmVVVVOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyyPPPPeeeerrrrDDDDiiiissssppppllllaaaayyyy((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y - Allocates a hierarchy ID and
- opens all the UID files in the hierarchy
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Mrm/MrmPublic.h>
-
- Cardinal MrmOpenHierarchyPerDisplay (ddddiiiissssppppllllaaaayyyy,,,, nnnnuuuummmm____ffffiiiilllleeeessss,,,, ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt,,,,
- aaaannnncccciiiillllllllaaaarrrryyyy____ssssttttrrrruuuuccccttttuuuurrrreeeessss____lllliiiisssstttt,,,, hhhhiiiieeeerrrraaaarrrrcccchhhhyyyy____iiiidddd)
- _D_i_s_p_l_a_y *ddddiiiissssppppllllaaaayyyy;
- _M_r_m_C_o_u_n_t nnnnuuuummmm____ffffiiiilllleeeessss;
- _S_t_r_i_n_g ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt[];
- _M_r_m_O_s_O_p_e_n_P_a_r_a_m_P_t_r*aaaannnncccciiiillllllllaaaarrrryyyy____ssssttttrrrruuuuccccttttuuuurrrreeeessss____lllliiiisssstttt;
- _M_r_m_H_i_e_r_a_r_c_h_y *hhhhiiiieeeerrrraaaarrrrcccchhhhyyyy____iiiidddd;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y allows you to specify the list of
- UID files that MRM searches in subsequent fetch operations.
- All subsequent fetch operations return the first occurrence
- of the named item encountered while traversing the UID
- hierarchy from the first list element (UID file
- specification) to the last list element. This function also
- allocates a hierarchy ID and opens all the UID files in the
- hierarchy. It initializes the optimized search lists in the
- hierarchy. If _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y encounters any
- errors during its execution, any files that were opened are
- closed.
-
- The application must call _X_t_A_p_p_I_n_i_t_i_a_l_i_z_e before calling
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y.
-
- ddddiiiissssppppllllaaaayyyy
- Specifies the connection to the X server and the value
- to pass to _X_t_R_e_s_o_l_v_e_P_a_t_h_n_a_m_e. For more information on
- the Display structure, see the Xlib function
- _X_O_p_e_n_D_i_s_p_l_a_y.
-
- nnnnuuuummmm____ffffiiiilllleeeessss
- Specifies the number of files in the name list.
-
- ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt
- Specifies an array of character strings that identify
- the UID files.
-
- aaaannnncccciiiillllllllaaaarrrryyyy____ssssttttrrrruuuuccccttttuuuurrrreeeessss____lllliiiisssstttt
- A list of operating-system-dependent ancillary
- structures corresponding to such things as filenames,
- clobber flag, and so forth. This argument should be
- NULL for most operations. If you need to reference
- this structure, see the definition of _M_r_m_O_s_O_p_e_n_P_a_r_a_m_P_t_r
- in _M_r_m_P_u_b_l_i_c._h for more information.
-
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyyPPPPeeeerrrrDDDDiiiissssppppllllaaaayyyy((((UUUU3333NNNNXXXXIIII))))XXXX SSSSyyyysssstttteeeeMMMMmmmmrrrrmmmmVVVVOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyyPPPPeeeerrrrDDDDiiiissssppppllllaaaayyyy((((3333XXXX))))
-
-
-
- hhhhiiiieeeerrrraaaarrrrcccchhhhyyyy____iiiidddd
- Returns the search hierarchy ID. The search hierarchy
- ID identifies the list of UID files that MRM searches
- (in order) when performing subsequent fetch calls.
-
- Each UID file string in ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt can specify either a
- full pathname or a filename. If a UID file string has a
- leading slash (/), it specifies a full pathname, and MRM
- opens the file as specified. Otherwise, the UID file string
- specifies a filename. In this case MRM looks for the file
- along a search path specified by the _U_I_D_P_A_T_H environment
- variable or by a default search path, which varies depending
- on whether or not the _X_A_P_P_L_R_E_S_D_I_R environment variable is
- set.
-
- The _U_I_D_P_A_T_H environment variable specifies a search path and
- naming conventions associated with UID files. It can
- contain the substitution field %U, where the UID file string
- from the ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt argument to
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y is substituted for %U. It can
- also contain the substitution fields accepted by
- _X_t_R_e_s_o_l_v_e_P_a_t_h_n_a_m_e. The substitution field %T is always
- mapped to _u_i_d. The entire path is first searched with %S
- mapped to ._u_i_d and then, if no file is found, is searched
- again with %S mapped to NULL. For example, the following
- _U_I_D_P_A_T_H value and _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y call cause MRM
- to open two separate UID files:
- UIDPATH=/uidlib/%L/%U.uid:/uidlib/%U/%L
- static char *uid_files[] = {"/usr/users/me/test.uid",
- "test2"};
- MrmHierarchy *Hierarchy_id;
- MrmOpenHierarchyPerDisplay((MrmCount)2,uid_files, NULL,
- Hierarchy_id)
-
- MRM opens the first file, /_u_s_r/_u_s_e_r_s/_m_e/_t_e_s_t._u_i_d, as
- specified in the ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt argument to
- _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y, because the UID file string in
- the ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt argument specifies a full pathname. MRM
- looks for the second file, _t_e_s_t_2, first as
- /_u_i_d_l_i_b/%_L/_t_e_s_t_2._u_i_d and second as /_u_i_d_l_i_b/_t_e_s_t_2/%_L, where
- the display's language string is substituted for %L.
-
- After _M_r_m_O_p_e_n_H_i_e_r_a_r_c_h_y_P_e_r_D_i_s_p_l_a_y opens the UID hierarchy,
- you should not delete or modify the UID files until you
- close the UID hierarchy by calling _M_r_m_C_l_o_s_e_H_i_e_r_a_r_c_h_y.
-
- If _U_I_D_P_A_T_H is not set but the environment variable
- _X_A_P_P_L_R_E_S_D_I_R is set, MRM searches the following pathnames:
- 23:00:06S
- $XAPPLRESDIR/%L/uid/%N/23:00:06S
- $XAPPLRESDIR/%l/uid/%N/23:00:06S
- $XAPPLRESDIR/uid/%N/23:00:06S
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyyPPPPeeeerrrrDDDDiiiissssppppllllaaaayyyy((((UUUU3333NNNNXXXXIIII))))XXXX SSSSyyyysssstttteeeeMMMMmmmmrrrrmmmmVVVVOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyyPPPPeeeerrrrDDDDiiiissssppppllllaaaayyyy((((3333XXXX))))
-
-
-
- $XAPPLRESDIR/%L/uid/23:00:06S
- $XAPPLRESDIR/%l/uid/23:00:06S
- $XAPPLRESDIR/uid/23:00:06S
- $HOME/uid/23:00:06S
- $HOME/23:00:06S
- /usr/lib/X11/%L/uid/%N/23:00:06S
- /usr/lib/X11/%l/uid/%N/23:00:06S
- /usr/lib/X11/uid/%N/23:00:06S
- /usr/lib/X11/%L/uid/23:00:06S
- /usr/lib/X11/%l/uid/23:00:06S
- /usr/lib/X11/uid/23:00:06S
- /usr/include/X11/uid/23:00:06S
-
- If neither _U_I_D_P_A_T_H nor _X_A_P_P_L_R_E_S_D_I_R is set, MRM searches the
- following pathnames:
- 23:00:06S
- $HOME/%L/uid/%N/23:00:06S
- $HOME/%l/uid/%N/23:00:06S
- $HOME/uid/%N/23:00:06S
- $HOME/%L/uid/23:00:06S
- $HOME/%l/uid/23:00:06S
- $HOME/uid/23:00:06S
- $HOME/23:00:06S
- /usr/lib/X11/%L/uid/%N/23:00:06S
- /usr/lib/X11/%l/uid/%N/23:00:06S
- /usr/lib/X11/uid/%N/23:00:06S
- /usr/lib/X11/%L/uid/23:00:06S
- /usr/lib/X11/%l/uid/23:00:06S
- /usr/lib/X11/uid/23:00:06S
- /usr/include/X11/uid/23:00:06S
-
- These paths are defaults that vendors may change. For
- example, a vendor may use different directories for
- /_u_s_r/_l_i_b/_X_1_1 and /_u_s_r/_i_n_c_l_u_d_e/_X_1_1.
-
- The following substitutions are used in these paths:
-
- %_U The UID file string, from the ffffiiiilllleeee____nnnnaaaammmmeeeessss____lllliiiisssstttt argument.
-
- %_N The class name of the application.
-
- %_L The display's language string.
-
- %_l The language component of the display's language
- string.
-
- %_S The suffix to the file name. The entire path is
- searched first with a suffix of ._u_i_l, and if no file is
-
-
-
-
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-
-
-
- MMMMrrrrmmmmOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyyPPPPeeeerrrrDDDDiiiissssppppllllaaaayyyy((((UUUU3333NNNNXXXXIIII))))XXXX SSSSyyyysssstttteeeeMMMMmmmmrrrrmmmmVVVVOOOOppppeeeennnnHHHHiiiieeeerrrraaaarrrrcccchhhhyyyyPPPPeeeerrrrDDDDiiiissssppppllllaaaayyyy((((3333XXXX))))
-
-
-
- found, it is searched again with a NULL suffix.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- This function returns one of these status return constants:
-
- _M_r_m_S_U_C_C_E_S_S
- The function executed successfully.
-
- _M_r_m_N_O_T__F_O_U_N_D
- File not found.
-
- _M_r_m_F_A_I_L_U_R_E
- The function failed.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _M_r_m_C_l_o_s_e_H_i_e_r_a_r_c_h_y(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 11/11/03)
-
-
-
-